
//
//  LCYCollectionViewCell.m
//  EPA
//
//  Created by lanou3g on 16/4/19.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "LCYCollectionViewCell.h"

@interface LCYCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@end

@implementation LCYCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(LCYHomeModel *)model {
    if (_model != model) {
        _model = model;
    }
}

- (void)layoutSubviews {
//    self.imgView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:self.model.coverimg]]];
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.titleLable.text = [NSString stringWithFormat:@"%@%@",self.model.name,self.model.enname];
    
}


@end
